import path from 'path';

module.exports = {
  alias: {
    '/@/': path.resolve(__dirname, './src'),
  },
  sourcemap: true,
  ssr:false,
  optimizeDeps: {
    include: ["lodash"]
  },
  proxy: {
    '/api': {
      target: 'http://rap2.taobao.org:38080/app/mock/237355',
      changeOrigin: true,
      rewrite: (path) => path.replace(/^\/api/, '')
    }
  }
}